<!--[BEGIN: js config]-->
<script type="text/javascript" src="{URL_JS}jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="{URL_JS}jquery-latest.js"></script>
<script type="text/javascript" src="{URL_JS}jquery.validate.js"></script>
<script type="text/javascript" src="{URL_JS}jquery.cookie.js"></script>
<script type="text/javascript" src="{URL_JS}jquery.corner.js"></script>
<script src="{URL_JS}xmlhttp.js" type="text/javascript"></script>
<script src="{URL_JS}json.js" type="text/javascript"></script>
<script src="{URL_JS}common.js" type="text/javascript"></script>
<script type="text/javascript" src="{URL_JS}/jquery-ui/js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="{URL_JS}/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ja.js"></script>
<script type="text/javascript">
	var cmThemeOfficeBase = '{URL_TEMPLATE_ADMIN}js/ThemeOffice/';
	function confirmDelete(){
		return confirm('{TEXT.are_you_sure}');
	}
	function check_child(obj_parent){
		var sStatus = obj_parent.checked == true ? true : false;
		var obj = document.frmUpdate.elements['charge_service[]'];
		if(obj && obj.length){
			//alert(Prototype.Browser.IE);
			//alert(i);
				if(Prototype.Browser.IE)
				{
					for (i = 0; i < obj.length; i++){
					if(obj[i].title == obj_parent.value){
					obj[i].checked = sStatus ;
					}
					}
				}else{
					for(i in obj){
						if(obj[i].title == obj_parent.value){
						obj[i].checked = sStatus;
						}
					}
				}
		}
	}
	
	function check_child1(obj_parent){
		var sStatus = obj_parent.checked == true ? true : false;
		var obj = document.frmUpdate.elements['room_type[]'];
		if(obj && obj.length){
				if(Prototype.Browser.IE)
				{
					for (i = 0; i < obj.length; i++){
					if(obj[i].title == obj_parent.value){
					obj[i].checked = sStatus ;
					}
					}
				}else{
					for(i in obj){
						if(obj[i].title == obj_parent.value){
						obj[i].checked = sStatus;
						}
					}
				}
		}
	}
	function print(sMsg,sID,sClass){
		try{
			document.getElementById(sID).innerHTML=sMsg;
			if(sClass)addClass(sID,sClass)
		}
		catch(e){
			try{document.sID.innerHTML=sMsg;
			if(sClass)addClass(sID,sClass)
			}
			catch(e){
				try{
					document.all.sID.innerHTML=sMsg;
					if(sClass)addClass(sID,sClass)
				}
				catch(e){
					alert(sMsg);
				}
			}
		}
	}
	function IsNumeric(sText)
	
	{
	   var ValidChars = "0123456789.";
	   var IsNumber=true;
	   var Char;
	
	 
	   for (i = 0; i < sText.length && IsNumber == true; i++) 
		  { 
		  Char = sText.charAt(i); 
		  if (ValidChars.indexOf(Char) == -1) 
			 {
			 IsNumber = false;
			 }
		  }
	   return IsNumber;
	   
	   }
	   
	function ValidNumber(x)
	{
		var illigal=/[\.\,]/;
		if(!isNaN(x)&& x!='')
		{
			if(x.match(illigal))
			{
				return false;
			}
			else 
			return true;
			
			//alert("ok");
		}
		else
		{
			return false
		}
	}
	
	function limitText(limitField, limitNum) {
		if (limitField.value.length > limitNum) {
			limitField.value = limitField.value.substring(0, limitNum);
		} 
	}
	srcImageClearAll = '{URL_TEMPLATE_ADMIN}image/publish_r.png';
	srcImageCheckAll = '{URL_TEMPLATE_ADMIN}image/publish_g.png';
	// Dialog			
	$(function() {

		$('#dialog').dialog({
			autoOpen: false,
			width: 400,
			modal: true,
			
		});
		
	});
</script>
<script src="{URL_TEMPLATE_ADMIN}js/JSCookMenu.js" type="text/javascript"></script>
<script src="{URL_TEMPLATE_ADMIN}js/ThemeOffice/theme.js" type="text/javascript"></script>
<!--[END: js config]-->